package com.hmall.mapper;

import com.hmall.model.MallCommentDetail;
import com.hmall.util.MyMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

@Repository
public interface MallCommentDetailMapper extends MyMapper<MallCommentDetail> {
    int countComment(@Param("commentId") Integer commentId);

    List<MallCommentDetail> selectByCommentId(@Param("commentId") Integer commentId);

    void myInsert(@Param("mallCommentDetail") MallCommentDetail mallCommentDetail);
}